/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Assignment.DTO;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

/**
 *
 * @author dieptn
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "books"
})
@XmlRootElement(name="Books")
public class BookListDTO {

    @XmlElement(required=true, name="Book")
    protected List<BookDTO> books;

    public List<BookDTO> getBookList() {
        if (books == null) {
            books = new ArrayList<BookDTO>();
        }
        return this.books;
    }
}
